import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import TreeTable from 'vue-table-with-tree-grid'
import VueQuillEditor from 'vue-quill-editor'
//全局样式
import './assets/css/index.css'
import element from './plugin/element-ui'
//引入字体图表
import './assets/iconfont/iconfont.css'
Vue.use(element)
Vue.config.productionTip = false

//过滤器
Vue.filter('getTime',(timer)=>{
  const data = new Date(timer)
  const year = data.getFullYear()
  const month = (data.getMonth()+1+'').padStart(2,'0')
  const da = (data.getDate()+'').padStart(2, '0')
  const hour = (data.getHours()+'').padStart(2,'0')
  const min = (data.getUTCMinutes()+'').padStart(2, '0')
  const sec = (data.getSeconds()+'').padStart(2,'0')
  return `${year}-${month}-${da} ${hour}:${min}:${sec}`
})


import 'quill/dist/quill.core.css' 
import 'quill/dist/quill.snow.css' 
import 'quill/dist/quill.bubble.css' 

Vue.use(VueQuillEditor)
Vue.component('TreeTable', TreeTable)

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
